package com.mall.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.entity.LogisticsCompany;

import java.util.List;

/**
 * @author ShouPeng
 * @since 2023-04-16
 */
public interface ILogisticsCompanyService {

    /**
     * 查询快递公司
     * @param page 页
     * @return list
     */
    IPage<LogisticsCompany> queryLogisticsCompany(Page<LogisticsCompany> page);

    /**
     * 查询快递公司
     * @return list
     */
    List<LogisticsCompany> queryLogisticsCompany();

    /**
     * 查询快递公司
     * @return list
     */
    LogisticsCompany queryLogisticsCompanyById(Integer companyId);

    /**
     * 删除快递公司
     * @param ids ids
     * @return success count
     */
    Integer deleteLogisticsCompany(List<String> ids);

    /**
     * 修改快递公司
     * @param logisticsCompany entity
     * @return bool
     */
    Boolean updateLogisticsCompany(LogisticsCompany logisticsCompany);

    /**
     * 添加快递公司
     * @param logisticsCompany entity
     * @return bool
     */
    Boolean addLogisticsCompany(LogisticsCompany logisticsCompany);

}
